/*********************** Exercise 3 ************************
 * Create a class containing a float and use it
 * to demonstrate aliasing during method calls.
 ***********************************************************/

package operators;

import static utils.Print.*;

class C2{
    public float f;
}

/**
 *
 * @author Vlad
 */
public class Exercise3 {
    public static void m1(C2 x){
        x.f = 3.14F;
    }

    public static void main(String[] args){
        C2 c2 = new C2();
        print("c2.f = " + c2.f);
        m1(c2);
        print("c2.f = " + c2.f);
        print();
    }
}
